package com.hnhs.mapper;

import com.hnhs.model.Product;
import com.hnhs.model.ProductQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductMapper {

    public List<Product> findAll();
    public List<Product> select(ProductQuery query);
    Integer insert(Product product);
    int update(Product product);
    int updateStatus(@Param("id") Integer id, @Param("status") Integer status);



}
